﻿#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#include<windows.h>
int main()
{/*
	char a[] = "hello world";
	memset(a, '#', strlen(a));
	printf("%s", a);*/
	char arr1[] = "welcome to world!!!!!";
	char arr2[] = "#####################";

	int left = 0;
	int right = strlen(arr1) - 1;

	while (left <= right)
	{
		arr2[left] = arr1[left];
		arr2[right] = arr1[right];
		printf("%s\n", arr2);

		Sleep(150);//window下Sleep函数参数的单位是毫秒
		system("cls");
		left++;
		right--;
	}
	printf("%s\n", arr2);


	return 0;
}